package GUI;

import javax.swing.JPanel;
import java.awt.Color;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JTextField;

import Client.VCPMain;
import Logic.LoginInfo;

import java.awt.Font;
import java.util.ArrayList;

public class ParkingWorker extends JPanel {
	public ParkingWorker(){
		
		initComponent();
		
	}
public void initComponent()
{
	//setBackground(Color.BLUE);
	setLayout(null);	
	
	JButton btnExit = new JButton("Exit");
	btnExit.addActionListener(new ActionListener() {
		public void actionPerformed(ActionEvent e) {
			ArrayList <String> arrlist=new ArrayList<String>();
			arrlist.add("logout");
			arrlist.add("Worker");
			arrlist.add(LoginInfo.UserName);
			VCPMain.chat.handleMessageFromGui(arrlist);
			
		}
	});
	btnExit.setBounds(519, 403, 112, 40);
	add(btnExit);
	
	JButton btnMaintainParkingPlace = new JButton("Parking Spot Maintainance ");
	btnMaintainParkingPlace.setFont(new Font("Tahoma", Font.BOLD, 17));
	btnMaintainParkingPlace.addActionListener(new ActionListener() {
		public void actionPerformed(ActionEvent e) {
		}
	});
	btnMaintainParkingPlace.setBounds(42, 39, 267, 54);
	add(btnMaintainParkingPlace);
	
	JButton btnFullMode = new JButton("Full ParkingLot Mode");
	btnFullMode.setFont(new Font("Tahoma", Font.BOLD, 17));
	btnFullMode.addActionListener(new ActionListener() {
		public void actionPerformed(ActionEvent e) {
		}
	});
	btnFullMode.setBounds(42, 123, 267, 54);
	add(btnFullMode);
	
	JButton btnPricing = new JButton("Pricing");
	btnPricing.addActionListener(new ActionListener() {
		public void actionPerformed(ActionEvent e) {
		}
	});
	btnPricing.setFont(new Font("Tahoma", Font.BOLD, 17));
	btnPricing.setBounds(42, 210, 267, 54);
	add(btnPricing);
	
	JButton btnSetup = new JButton("Setup");
	btnSetup.setFont(new Font("Tahoma", Font.BOLD, 17));
	btnSetup.setBounds(42, 290, 267, 54);
	add(btnSetup);
	
	JButton btnSaveSpot = new JButton("Save Spot");
	btnSaveSpot.setFont(new Font("Tahoma", Font.BOLD, 17));
	btnSaveSpot.setBounds(42, 355, 267, 54);
	add(btnSaveSpot);
}
}
